{% load static from staticfiles %}
<!doctype html>
<html>
<head>
    <meta charset="utf8">
    <meta name="keywords" content=""/>
    <meta name="description" content="主题的个人博客模板，优雅、稳重、大气,低调。"/>
    <title>个人博客</title>

    <link href="{% static 'css/base.css' %}" rel="stylesheet">
    <link href="{% static 'css/mood.css' %}" rel="stylesheet">
    <script src="{% static 'js/jquery-1.11.3/jquery.min.js' %}"></script>


</head>

<body bgcolor="#EEE">

<header>
    <div id="logo"><a href="/"></a></div>
    <nav class="topnav" id="topnav"><a href="{% url 'App:index' %}"><span>首页</span><span
            class="en">Protal</span></a><a href="{% url 'App:aboutme' %}"><span>关于我</span><span
            class="en">About</span></a>
        <a href="{% url 'App:register' %}"><span>注册</span><span class="en">Learn</span></a>
        {#      在这里判断是否带session#}
        {% if usession %}
            <a href="{% url 'App:login' %}"><span>欢迎:{{ usession }}</span><span class="en">Learn</span></a>
            <a href="{% url 'App:logingout' %}"><span>退出</span><span class="en">Learn</span></a>
        {% else %}
            <a href="{% url 'App:login' %}"><span>登录</span><span class="en">Learn</span></a></nav>
        {% endif %}

</header>


<div class="moodlist">
    <h1 class="t_nav"><span>删删写写，回回忆忆，虽无法行云流水，却也可碎言碎语。</span>
        <a href="{% url 'App:index' %}" class="n1">首页</a>

        <a href="" class="n2">{{ title }}</a>
    </h1>
    <div class="bloglist">
        {% for p in post %}
            <ul class="arrow_box">
                <div class="sy">
                    <img src="{% static 'images/001.png' %}">

                    <p class="titles">{{ p.title }}</p>
                    {#      <p> 我希望我的爱情是这样的，相濡以沫，举案齐眉，平淡如水。</p>#}
                    <p class="cont">{{ p.content }}</p>

                    <p class="read"><a style="color: #c0a16b" href="/App/makeviews/{{ p.id }}" id="readall">阅读全文</a></p>

                </div>
                <span class="dateview">{{ p.pub_date }}</span>
            </ul>
        {% endfor %}

    </div>

    </div>

</body>
</html>
